﻿#include "SplashScreen.h"

#include <QApplication>
#include <QPrinter>

SplashScreen::SplashScreen(QWidget *parent)
    : QSplashScreen(parent)
{
    QPixmap pixmap(":/imgs/splash.png");
    setPixmap(pixmap);

    QPrinter printer;  // 这行代码不可删除！！！
}

void SplashScreen::show()
{
    QSplashScreen::show();
    qApp->processEvents();
}
